import http from '../http';

//table 分页列表
export function navigation11List(params) {
    return http({
        url: '/role/list',
        method: "post",
        params: params
    })
}

//table 新增/修改
export function navigation11AddEdit(data) {
    return http({
        url: '/role/save',
        method: "post",
        data: data
    })
}

//table 删除
export function navigation11Del(params) {
    return http({
        url: '/role/delete',
        method: "post",
        data: params
    })
}

//资源列表
export function getRoleResources(data) {
    return http({
        url: '/resource/getRoleResources',
        method: "post",
        data: data
    })
}

export function rolePermissionDelete(data) {
    return http({
        url: '/rolePermission/delete',
        method: "post",
        data: data
    })
}

export function listRoleSResources(data) {
    return http({
        url: '/resource/listRoleSResources',
        method: "post",
        data: data
    })
}

export function userRoleSave(data) {
    return http({
        url: '/rolePermission/save',
        method: "post",
        data: data
    })
}
